﻿using VigenereCipher.Models;

namespace VigenereCipher
{
    internal class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入明文");
            string PlainText = Console.ReadLine();
            Console.WriteLine("请输入密钥");
            string KeyText = Console.ReadLine();
            //实现加密
            MyEncoder myEncoder = new MyEncoder();
            myEncoder.Plain = PlainText;
            myEncoder.Key = KeyText;
            myEncoder.encode();
            Console.WriteLine($"密文是{myEncoder.Cipher}");
        }
    }
}